import {Component, OnInit} from '@angular/core';
import {OuOrgSearchConfig} from '../../ou/ou-org-user/entity/ou-org-search-config';
import {NzTreeNode} from 'ng-zorro-antd/core/tree/nz-tree-base-node';

@Component({
    selector: 'up-permission',
    templateUrl: './up-permission.component.html',
    styleUrls: ['./up-permission.component.less']
})
export class UpPermissionComponent implements OnInit {

    activeNzTreeNode: NzTreeNode;

    searchConfig: OuOrgSearchConfig = {
        searchSubOrg: true,
        searchDept: true,
        searchUser: true,
    };

    constructor() {
    }

    ngOnInit() {
    }

    selectNode(selectedNodeTreeNode: NzTreeNode): void {
        this.activeNzTreeNode = selectedNodeTreeNode;
    }

}
